package com.bawei.mall.product.remote;

import com.bawei.common.core.constant.ServiceNameConstants;
import com.bawei.common.core.web.page.TableDataInfo;
import com.bawei.mall.product.domain.Advertise;
import com.bawei.mall.product.factory.RemoteAdvertiseInfoFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author DongZl
 * @description: 商品远程调用
 * @Date 2022-10-15 上午 08:40
 */
@FeignClient(contextId = "remoteAdvertiseInfo", value = ServiceNameConstants.PRODUCT_SERVICE,
        fallbackFactory = RemoteAdvertiseInfoFallbackFactory.class,
        path = "/advertise")
public interface RemoteAdvertiseInfo {

    /**
     * 查询广告列表
     */
    @GetMapping("/list")
    public TableDataInfo list(Advertise advertise);
}
